<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <script src="./lib/vue-2.4.0.js"></script>

</head>

<body>
    <div id="app">
        <p v-for="(item, i) in list"> 索引值:{{i}} ----{{item}}</p>
        <p v-for="(user, i) in str"> 索引值:{{i}}-----id号:{{user.id}} ----{{user.name}}</p>
        <hr>
        <p v-for="(val,key,i) in cjj">{{key}}:{{val}}---索引{{i}}</p>
    </div>
    <script>
        var vm = new Vue({

            el: '#app',
            data: {
                list: [1, 2, 3, 4, 5, 6, 7, 8],
                str: [
                    { id: 1, name: 'zs1' },
                    { id: 2, name: 'st2' },
                    { id: 3, name: 'tys3' }
                ],
                cjj: {
                    id: 99,
                    name: '尼古拉斯-cjj',
                    gender: 'girl',

                }

            },
            methods: {//一般请求发送回都是卸载methods ;
                get() {
                    axios.post('/user', {
                        firstName: 'Fred',             
                        lastName: 'Flintstone'
                    }) .then(function (response) {
                            console.log(response);
                    })

                }

            }
        })
    </script>
</body>

</html>